package com.sjq.common.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class DictTreeNode implements Serializable {

	    private String id;
	    private String name;
	    private String pid;
	    private String isParent;
		private String open;
		private Integer orderno;
		private List<DictTreeNode> children=new ArrayList<DictTreeNode>();

		@Override
		public String toString() {
			String idStr = id == null ? "null" : id;
			String pidStr = pid == null ? "0" : pid;
			String childrenStr = children == null ? "null" : String.valueOf(children.size());
			return "DictTree [id=" + idStr + ", name=" + name + ", pid=" + pidStr + ", isParent=" + isParent + ", open="+ open + ", orderno=" 
					+ orderno + ", children=" + childrenStr +"]";
		}

		public String getId() {
			return id;
		}

		public void setId(String id) {
			this.id = id;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public String getPid() {
			return pid;
		}

		public void setPid(String pid) {
			this.pid = pid;
		}

		public String getOpen() {
			return open;
		}

		public void setOpen(String open) {
			this.open = open;
		}

		public Integer getOrderno() {
			return orderno;
		}

		public void setOrderno(Integer orderno) {
			this.orderno = orderno;
		}

		public String getIsParent() {
			return isParent;
		}

		public void setIsParent(String isParent) {
			this.isParent = isParent;
		}

		public List<DictTreeNode> getChildren() {
			return children;
		}

		public void setChildren(List<DictTreeNode> children) {
			this.children = children;
		}

		
}
